package top.anydata.lifeofcode.lifesystem.dao.sys.user;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import top.anydata.lifeofcode.lifesystem.entity.sys.user.SysAuthPermissionEntity;


@Repository
public interface ISysAuthPermissionRepository extends JpaRepository<SysAuthPermissionEntity,Integer> {
    @Modifying
    @Query("update SysAuthPermissionEntity s set s.isDeleted = 1 where s.id = ?1")
    void deleteById(Integer id);

}
